<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <title>title</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>
    <style>
        html, body {
            background-color: #f8f8f8;
        }
        .main {
        	background-color: #fff;
        }
        .main ul li .li_box {
        	height: 50px;
        	line-height: 50px;
        	border-bottom: 1px solid #e8e8e8;
        	overflow: hidden;
        }
        .main ul li:last-child .li_box {
        	border-bottom: none;
        }
        .main ul li .li_box .li_boxl {
        	float: left;
        	color: #333;
        	font-size: 15px;
        	padding-left: 15px;
        }
        .main ul li .li_box .li_boxr {
        	height: 50px;
        	float: right;
        	font-size: 12px;
        	color: #999;
        	text-align: right;
        	display: -webkit-box;
        	-webkit-box-align: center;
        	-webkit-box-pack: end;
        	padding: 0 15px;
        }
        .main ul li .li_box .li_boxr input {
        	display: none;
        }
        .main ul li .li_box .li_boxr .check_icon {
        	height: 22px;
        	display: block;
        }
        .text {
        	font-size: 12px;
        	color: #999;
        	padding: 10px 15px;
        }
    </style>
</head>
<body>
    <div class="main">
    	<ul>
    		<li>
    			<div class="li_box">
    				<div class="li_boxl">推送服务</div>
    				<div class="li_boxr" tapmode onclick="fnPush();">
    					<input type="checkbox" name="push" checked="true">
    					<img class="check_icon" src="../image/check_on.png">
    				</div>
    			</div>
    		</li>
    	</ul>
    </div>
    <div class="text">如果需要消息提醒功能，请在“设置”-“通知”-“通知”中找到应用程序更改。</div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/zepto.js"></script>
<script type="text/javascript">
    apiready = function(){
        
    };

    // 推送
    function fnPush() {
    	if ($('input[name=push]').is(':checked')) {
    		$('input[name=push]').prop('checked', false);
    		$('.check_icon').attr('src', '../image/check_off.png');
    	} else {
    		$('input[name=push]').prop('checked', true);
    		$('.check_icon').attr('src', '../image/check_on.png');
    	}
    }
</script>
</html>